import Login from '../components/Login'
import Home from '../components/Home'
import Users from '../components/user/Users'
import Rights from '../components/power/Rights'
import Roles from '../components/power/Roles'
import Cate from '../components/goods/Cate'
import Params from '../components/goods/Params'


export default [
  //登录
  {
    path: '/login',
    component: Login
  },

  {
    path: '/home',
    component: Home,
    children: [
      //用户列表
      {
        path: '/users',
        component: Users
      },
      //权限列表
      {
        path: '/rights',
        component: Rights
      },
      //分类参数
      {
        path: '/roles',
        component: Roles
      },
      //商品分类
      {
        path: '/categories',
        component: Cate
      },
      //分类参数
      {
        path: '/params',
        component: Params
      },
    ]
  },

  {
    path: '/',
    redirect: '/home'
  }
]
